# Contributor: Lauren N. Liberda <lauren@selfisekai.rocks>
# Maintainer: Lauren N. Liberda <lauren@selfisekai.rocks>
pkgname=gnomecast
pkgver=1.9.11_git20220423
_commit=d42d8915838b01c5cadacb322909e08ffa455d4f
pkgrel=2
pkgdesc="A native Linux GUI for casting local files to Chromecast devices"
url="https://github.com/keredson/gnomecast"
arch="noarch"
license="GPL-3.0-only"
depends="
	ffmpeg
	gtk+3.0
	python3
	py3-bottle
	py3-dbus
	py3-gobject3
	py3-html5lib
	py3-paste
	py3-pycaption
	py3-pychromecast
	"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
options="!check"	# broken tests
subpackages="$pkgname-pyc"
source="
	https://github.com/keredson/gnomecast/archive/$_commit/gnomecast-$_commit.tar.gz

	no-pandoc.patch
	"
builddir="$srcdir/gnomecast-$_commit"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/tests
}

sha512sums="
00d254330b337d5bc4713de59d3ed1805ac5afb1dcf919c306c41dc6817345902717dff622f902dafa801c0289f76f7a9c328b70fe094a7829f7ec1f836c531f  gnomecast-d42d8915838b01c5cadacb322909e08ffa455d4f.tar.gz
3e15f74bcae0189a37a0ed716302c858738ef10f8fc24cc335ac54b06c6f6920854ac23bf07c3570d7b329e80dc2c3421b999fcf75e95bd6420c97c574510866  no-pandoc.patch
"
